module.exports = {
  // 用户
  userFormDataError: {
    code: 10001,
    message: "数据格式不正确",
  },
  userRepetitionError: {
    code: 10002,
    message: "用户已存在",
  },
  userCreateError: {
    code: 10003,
    message: "注册失败",
  },
  userGetInfoError: {
    code: 10004,
    message: "获取用户信息失败",
  },
  userLoginError: {
    code: 10005,
    message: "用户名或密码错误",
  },
  userChangePasswordError: {
    code: 10006,
    message: "修改密码失败，请检查旧密码",
  },

  // 权限
  authExpiredError: {
    code: 10101,
    message: "登陆状态已过期",
  },
  authInvalidError: {
    code: 10102,
    message: "身份验证失败",
  },

  // 问卷
  questionCreateError: {
    code: 10201,
    message: "问卷创建失败",
  },
  questionGetInfoError: {
    code: 10202,
    message: "未找到问卷，或许该问卷还未发布",
  },
  questionPublishedError: {
    code: 10203,
    message: "问卷发布失败，组件不能为空",
  },

  // 答卷
  answerCreateByIdError: {
    code: 10301,
    message: "问卷id不能为空",
  },
  answerCreateByEmptyError: {
    code: 10302,
    message: "不能提交空白卷",
  },
};
